import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
export default defineConfig({
  build: {
    minify: 'terser',
    terserOptions: {
      compress: {
        drop_console: true, // 例如：移除 console
        drop_debugger: true, // 例如：移除 debugger
      },
    },
    outDir: 'dist',
  },
  server: {
    hmr: false,
    host: '0.0.0.0',
    port: 80,
  },
  plugins: [
      uni(),
  ],
});
